package com.taoyuan.hotel.dao;

import com.taoyuan.hotel.entity.Employee;
import com.taoyuan.hotel.entity.Resident;
import com.taoyuan.hotel.excel.ResidentExcel;

import java.util.List;

public interface ResidentDao {
    int add(Resident resident);

    List<Resident> all();

    int del(Integer id);
    //修改
    int update(Resident resident);
    //查询，带条件 动态sql
    List<Resident> selectWhere(String name);
    //批量删除
    int delBatch(int[] ids);

    int addBatch(List<ResidentExcel> residents);
}
